package org.ielts.service;

import org.ielts.domain.course.Content;
import org.ielts.repository.course.ContentRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class ContentService {

	@Autowired
	ContentRepository contentRepository;
	
	public Iterable<Content> listAllContent() {
		Iterable<Content> contents = contentRepository.findAll();
		
		return contents;
	}

}
